import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'

export const usersRoutes: RouteConfig = {
  path: '/users',
  component: Layout,
  name: 'UserManagement',
  redirect: { name: 'UserManagementIndex' },
  meta: {
    title: 'userManagement',
    icon: 'user'
  },
  children: [
    {
      path: 'index',
      component: () => import(/* webpackChunkName: "users" */ '@/views/users/index.vue'),
      name: 'UserManagementIndex',
      meta: {
        title: 'userManagement',
        icon: 'user',
        affix: true
      }
    }
  ]
}
